<?php echo $this->Html->css('login', array(), array('inline' => false)); ?>
<div class="box login">
    <h1 class="font">Logowanie/rejestracja</h1>
    
    
    <div class="quickbox">
        <div class="title">
            <strong>Zaloguj się</strong> za pomocą:
        </div>
        <div class="loginBox">
            <h3>Swojego konta Google</h3>
            <div class="login-anchor">
                <?=
                $this->Html->link(
                        $this->Html->image('buttons/gmail_sign_up.png'), array("plugin" => 'ExtAuth', 'controller' => 'login', 'action' => 'login', 'Google'), array('escape' => false))
                ?>
            </div>
        </div>
        <div class="loginBox">
            <h3>Swojego konta Facebook</h3>
            <div class="login-anchor">
                <?=
                $this->Html->link(
                        $this->Html->image('buttons/fb_sign_up.png'), array("plugin" => 'ExtAuth', 'controller' => 'login', 'action' => 'login', 'Facebook'), array('escape' => false))
                ?>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
    

    <div class="separator"></div>
    
    
    <section class="old-login form">
    <?= $this->Form->create('User', array('action' => 'login')); ?>
    <?= $this->Form->input('email', array('label' => 'Jaki jest Twój adres e-mail?', 'placeholder' => 'wpisz swój adres e-mail', 'div' => 'required')) ?>
    <p class="desc">Czy posiadasz już swoje hasło?</p>
    <div class="input radio">
        <input type="radio" name="register" id="Register1" value="1" <?= empty($this->request->data) || $this->request->data['register'] == 1 ? 'checked="checked"' : '' ?> /> <label for="Register1">Nie, jestem nowym użytkownikiem.</label>
    </div>
    <div class="input radio">
        <input type="radio" name="register" id="Register0" value="0" <?= !empty($this->request->data) && $this->request->data['register'] == 0 ? 'checked="checked"' : '' ?>/> <label for="Register0">Tak, posiadam hasło</label> 
        <?= $this->Form->input('password', array('label' => false, 'div' => false, 'placeholder' => 'wpisz swoje hasło', 'class' => 'password', 'onfocus' => 'javascript:$(\'#Register0\').attr(\'checked\', \'checked\');')) ?>
    </div>
    <div class="submit">
        <button class="gbutton blue loginButton" type="submit" name="submit">Dalej</button>
    </div>
    <?= $this->Form->end() ?>
    </section>
</div>